﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200132D RID: 4909
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeChallengeRaidRewardScRsp : IMessage<TakeChallengeRaidRewardScRsp>, IMessage, IEquatable<TakeChallengeRaidRewardScRsp>, IDeepCloneable<TakeChallengeRaidRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003DEC RID: 15852
		// (get) Token: 0x0600DBBE RID: 56254 RVA: 0x0024C817 File Offset: 0x0024AA17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeChallengeRaidRewardScRsp> Parser
		{
			get
			{
				return TakeChallengeRaidRewardScRsp._parser;
			}
		}

		// Token: 0x17003DED RID: 15853
		// (get) Token: 0x0600DBBF RID: 56255 RVA: 0x0024C81E File Offset: 0x0024AA1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeChallengeRaidRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DEE RID: 15854
		// (get) Token: 0x0600DBC0 RID: 56256 RVA: 0x0024C830 File Offset: 0x0024AA30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeChallengeRaidRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DBC1 RID: 56257 RVA: 0x0024C837 File Offset: 0x0024AA37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRaidRewardScRsp()
		{
		}

		// Token: 0x0600DBC2 RID: 56258 RVA: 0x0024C840 File Offset: 0x0024AA40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRaidRewardScRsp(TakeChallengeRaidRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rewardId_ = other.rewardId_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DBC3 RID: 56259 RVA: 0x0024C898 File Offset: 0x0024AA98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRaidRewardScRsp Clone()
		{
			return new TakeChallengeRaidRewardScRsp(this);
		}

		// Token: 0x17003DEF RID: 15855
		// (get) Token: 0x0600DBC4 RID: 56260 RVA: 0x0024C8A0 File Offset: 0x0024AAA0
		// (set) Token: 0x0600DBC5 RID: 56261 RVA: 0x0024C8A8 File Offset: 0x0024AAA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003DF0 RID: 15856
		// (get) Token: 0x0600DBC6 RID: 56262 RVA: 0x0024C8B1 File Offset: 0x0024AAB1
		// (set) Token: 0x0600DBC7 RID: 56263 RVA: 0x0024C8B9 File Offset: 0x0024AAB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RewardId
		{
			get
			{
				return this.rewardId_;
			}
			set
			{
				this.rewardId_ = value;
			}
		}

		// Token: 0x17003DF1 RID: 15857
		// (get) Token: 0x0600DBC8 RID: 56264 RVA: 0x0024C8C2 File Offset: 0x0024AAC2
		// (set) Token: 0x0600DBC9 RID: 56265 RVA: 0x0024C8CA File Offset: 0x0024AACA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600DBCA RID: 56266 RVA: 0x0024C8D3 File Offset: 0x0024AAD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeChallengeRaidRewardScRsp);
		}

		// Token: 0x0600DBCB RID: 56267 RVA: 0x0024C8E4 File Offset: 0x0024AAE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeChallengeRaidRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.RewardId == other.RewardId && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DBCC RID: 56268 RVA: 0x0024C944 File Offset: 0x0024AB44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.RewardId != 0U)
			{
				num ^= this.RewardId.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DBCD RID: 56269 RVA: 0x0024C9B2 File Offset: 0x0024ABB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DBCE RID: 56270 RVA: 0x0024C9BA File Offset: 0x0024ABBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DBCF RID: 56271 RVA: 0x0024C9C4 File Offset: 0x0024ABC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RewardId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RewardId);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DBD0 RID: 56272 RVA: 0x0024CA3C File Offset: 0x0024AC3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.RewardId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RewardId);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DBD1 RID: 56273 RVA: 0x0024CAAC File Offset: 0x0024ACAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeChallengeRaidRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.RewardId != 0U)
			{
				this.RewardId = other.RewardId;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DBD2 RID: 56274 RVA: 0x0024CB28 File Offset: 0x0024AD28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DBD3 RID: 56275 RVA: 0x0024CB34 File Offset: 0x0024AD34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 82U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.RewardId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005744 RID: 22340
		private static readonly MessageParser<TakeChallengeRaidRewardScRsp> _parser = new MessageParser<TakeChallengeRaidRewardScRsp>(() => new TakeChallengeRaidRewardScRsp());

		// Token: 0x04005745 RID: 22341
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005746 RID: 22342
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04005747 RID: 22343
		private uint retcode_;

		// Token: 0x04005748 RID: 22344
		public const int RewardIdFieldNumber = 9;

		// Token: 0x04005749 RID: 22345
		private uint rewardId_;

		// Token: 0x0400574A RID: 22346
		public const int RewardFieldNumber = 10;

		// Token: 0x0400574B RID: 22347
		private ItemList reward_;
	}
}
